##
## Makefile for  in /home/georgi_v/rendu/PSU_2013_minishell1/libs
## 
## Made by georgi_v
## Login   <georgi_v@epitech.net>
## 
## Started on  Sun Nov 10 21:03:43 2013 georgi_v
## Last update Sat Dec  7 19:08:30 2013 georgi_v
##

NAME	= libmy.a

MYH	= my.h

RM	= rm -f

SRC	= my_getnbr.c  \
	  my_isneg.c  \
	  my_list.c  \
	  my_list_ex.c  \
	  my_power.c  \
	  my_putchar.c  \
	  my_putnbr.c  \
	  my_putstr.c  \
	  my_revstr.c  \
	  my_sort_int.c  \
	  my_square_root.c  \
	  my_starts_with.c  \
	  my_strcmp.c  \
	  my_strcpy.c  \
	  my_str_concat.c  \
	  my_str_isalpha.c  \
	  my_str_islower.c  \
	  my_str_isnum.c  \
	  my_str_isprintable.c \
	  my_str_isupper.c  \
	  my_strlen.c  \
	  my_strlowcase.c  \
	  my_str_slash_concat.c  \
	  my_str_to_wordtab.c  \
	  my_printf.c \
	  convert_to_non_prt.c  \
	  convert_to_hex_small.c  \
	  convert_to_addr.c  \
	  convert_to_bin.c  \
	  convert_to_char.c  \
	  convert_to_dec.c  \
	  convert_to_hex_capital.c \
	  convert_to_oct.c  \
	  convert_to_str.c \
	  convert_to_base_long.c \
	  convert_to_unsig_int.c \
	  convert_to_base.c \
	  convert_to_base_sign.c \
	  process_amps.c  \
	  process_char.c \
	  parse_line.c \
	  get_next_line.c

OBJ	= $(SRC:.c=.o)

CFLAGS  = -Wall -Wextra -Werror -ansi -pedantic $(INC)

all: 	 $(NAME)

%.o: %.c
	gcc -c $< $(CFLAGS) -o $@

$(NAME): $(OBJ)
	 ar rc $(NAME) $(OBJ)
	 ranlib $(NAME)

clean:
	$(RM) $(OBJ)

fclean: clean
	$(RM) $(NAME)

re: fclean all

.PHONY: all clean fclean re
